/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.mail.service.order;

import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import jakarta.validation.constraints.NotEmpty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * <b>(AbstractMailServiceOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/1/13
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PROTECTED)
@Accessors(chain = true)
public abstract class AbstractMailServiceOrder extends ServiceOrderBase {
    String subject;
    /** 发件人 */
    String from;
    /** 回复邮件接收人 */
    String replyTo;
    /** 收件人 */
    @NotEmpty
    List<String> to;
    /** 抄送给某人 */
    List<String> cc;
    /** 秘密抄送给某人 */
    List<String> bcc;
}